#ifndef __AmmeterProc_h__
#define __AmmeterProc_h__

#define AmmeterReadTimeOut 65536-200000/64 //200ms
#define AmmeterReadFinishTimeOut 65536-10000/64 //10ms
#define AmmeterReadRetryTimes 3
extern unsigned char AmmeterDatas[13];

void AmmeterRead(void);
unsigned char AmmeterSwith(unsigned char sw);
void AmmeterGetSwitch(void);
void AmmeterRxProc(unsigned char rx);
void InitUartAmmeter(void);
#endif // __AmmeterProc_h__

